-- GENERATED SPELL FOR [Lord Falconcrest] --


function spell0_2597(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(32064,pUnit)
pUnit:RegisterEvent('Sorts_2597', 619, 1)
end

function spell1_2597(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2597', 5340, 1)
end

function Sorts_2597(pUnit, Event)
local choix_sorts_2597 = math.random(0, 1)
if choix_sorts_2597 == 0 then
pUnit:RegisterEvent('spell0_2597', 1, 1)
end
if choix_sorts_2597 == 1 then
pUnit:RegisterEvent('spell1_2597', 1, 1)
end
end

function mob2597_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2597', math.random(1500, 3000), 1)
end

function mob2597_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2597_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2597_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2597, 1, 'mob2597_Action')
RegisterUnitEvent(2597, 2, 'mob2597_Leave')
RegisterUnitEvent(2597, 3, 'mob2597_Kill')
RegisterUnitEvent(2597, 4, 'mob2597_Die')
